##FROM frolvlad/alpine-oraclejdk8:slim
FROM openjdk:8
## 挂载临时目录
VOLUME /tmp
## 复制文件到容器
# COPY ./cicd-0.0.1-SNAPSHOT.jar app.jar
ADD ./cicd-0.0.1-SNAPSHOT.jar app.jar
ENV TZ=Asia/Shanghai
ENV JAVA_OPTS=""
# CMD java -jar app.jar
ENTRYPOINT ["sh", "-c",  "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar -Xms16m -Xmx64m" ]